package com.tgy.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tgy.pojo.BlogComment;
import com.tgy.pojo.BlogUser;
import com.tgy.vo.RecentlyCommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评论表;(blog_comment)表数据库访问层
 * @author : http://www.chiner.pro
 * @date : 2022-7-14
 */
@Mapper
public interface BlogCommentMapper  extends BaseMapper<BlogComment>{

     int updateStatus(@Param("id") String id, @Param("status") Integer status);

    Long queryCommentCount(String articleId);

    List<RecentlyCommentVo> getBuzzUser();

    List<BlogUser> getUserTopTen();

}